package com.qili.entity.sys;



import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.stereotype.Component;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author zhaoyongke
 * @date 2020/10/23
 * @description  省市
 */
@Table(name = "sys_region")
@Data
@ToString
@EqualsAndHashCode
@Component
public class SysRegion implements Serializable {
    @Id
    @Column(name = "id")
    private Long id;

    /**
     * 行政区划代码
     */
    @Column(name = "code")
    private String  code;

    /**
     * 名称
     */
    @Column(name = "name")
    private String name;

    /**
     * 上级id
     */
    @Column(name = "parent_id")
    private Long parentId;

    /**
     * level_id
     */
    @Column(name = "level_id")
    private String levelId;

    private static final long serialVersionUID = 1L;
}